Skip to content

Avoid creating ConstantComposites with spec constants#3662

Open
svenvh wants to merge 1 commit intoKhronosGroup:mainfrom
svenvh:ConstantComposites-spec
Open

Avoid creating ConstantComposites with spec constants#3662
svenvh wants to merge 1 commit intoKhronosGroup:mainfrom
svenvh:ConstantComposites-spec

Conversation

@svenvh
Copy link
Member

@svenvh svenvh commented Mar 17, 2026

A recent version of spirv-val is now reporting "OpConstantComposite must not have spec constant operands" for some tests.

Fix by letting addCompositeConstant defer to
addSpecConstantComposite when attempting to add a constant that has one or more specialization constant operands.

A recent version of spirv-val is now reporting "OpConstantComposite
must not have spec constant operands" for some tests.

Fix by letting `addCompositeConstant` defer to
`addSpecConstantComposite` when attempting to add a constant that has
one or more specialization constant operands.
@svenvh svenvh force-pushed the ConstantComposites-spec branch from ed2b659 to 8e4b379 Compare March 17, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant